﻿@model Everynet.Models.signUpModel
@{
    ViewBag.Title = "RegisteredUsers";
    Layout = "~/Views/Shared/_AdminLayout.cshtml";
}
    <br />
<u class="headerColor">Registered Users</u>
<p>
    @Html.ActionLink("Dashboard", "Dashboard", "Admin")
</p>
             
@using (Html.BeginForm())
{    
    <p>
        Name: @Html.TextBox("SearchString")&nbsp;&nbsp;
        <input type="submit" value="Filter" /></p> 
}
@if (TempData["message"] != null)
{
    <div class="text-success">
        @TempData["message"]
    </div>
}
<table class="table-data tblUsers" cellpadding="0" cellspacing="0" border="0" width="100%">
    <thead>
        <tr>
            <th align="left" class="header">
                ID
            </th>
            <th align="left" class="header">
                Title
            </th>
            <th align="left" class="header">
                 Name
            </th>
            
            <th align="left" class="header">
                Mobile
            </th>
            <th align="left" class="header">
                Email
            </th>
            <th align="left" class="header">
            User Type
            </th>
           
            <th align="left" class="header">
           Plan Detail Name
            </th>
            <th align="left" class="header">
           Plan Quota
            </th>
         
            <th  class="header grdEditWidth5">&nbsp;</th>
        </tr>
    </thead>
    <tbody>
        @foreach (var item in Model.listSignUpDetail)
        {
            <tr>
                <td>
                    @Html.DisplayFor(modelItem => item.ID)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.Title)
                </td>
                <td>
                 @Html.DisplayFor(modelItem => item.FirstName) &nbsp;
                 @Html.DisplayFor(modelItem => item.LastName)
                </td>
                
                 <td>
                 @Html.DisplayFor(modelItem => item.MobileNumber)
                </td>
                 <td>
                 @Html.DisplayFor(modelItem => item.Email)
                </td>
                  <td>
                  @Html.DisplayFor(modelItem => item.TypeName)
                </td>
             
                 <td>
                 @Html.DisplayFor(modelItem => item.PlanDetailName)
                </td>
                 <td>
                 @Html.DisplayFor(modelItem => item.PlanQuotaValue)&nbsp;
                @Html.DisplayFor(modelItem => item.PlanQuotaInterval)
                </td>
              
                 <td>@Html.ActionLink("Detail", "DetailUsers", new { id = item.ID })  | 
                  @Html.ActionLink("Delete", "DeleteUsers", new { id = item.ID }, new { onclick = "return confirm('Are you sure you want to delete?');" })
                </td>
            </tr>
        }
    </tbody>
</table>
<script src="@Url.Content("~/Scripts/TableSort.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/tablepaging.js")" type="text/javascript"></script>

<script src="@Url.Content("~/Scripts/admin/common.js")" type="text/javascript"></script>